#ifndef _UART_H_
#define _UART_H_

#include "main.h"
#include "driver/uart.h"
#include "esp_log.h"
#include "stdbool.h"

#define CMD_Start   	0x01B1
#define CMD_LoadPage	0x01B2
#define CMD_RquestLoad  0x01B3
#define CMD_Finish      0x01B4
#define CMD_Print       0x01B5
#define CMD_Stop        0x51A3


void usart1_init(void);
void USBControl_Pic(void);
void usart1_sendcommand(uint16_t cmd,uint16_t index);
void USBControl_DelayPrint(void);

extern uint8_t USB_Control;
extern uint16_t USB_DelayTime;
extern uint8_t USB_Print_Stata;

#endif

